import pytest
from log import caiji_log
from mail import sendmail
import os
if __name__ == '__main__':
    caiji_log()
    pytest.main(["-s","testcase.py","--alluredir=./报告数据","--clean-alluredir"])

    os.system("allure generate --clean ./报告数据 -o ./测试报告")

    sendmail(["serviceplatformlog.txt","./测试报告/index.html"])